<template>
  <view>
    <div @click="num--">-</div>
    <div>{{num}}</div>
    <div @click="num++">+</div>
  </view>
</template>

<script setup>
import {ref} from "vue";
let num = ref(0)

</script>

<style scoped>
  div{
    border: black 1px solid;
    display: inline-block;
    width: 20px;
    height: 20px;
  }
</style>
